﻿namespace Infrastructure.DDD
{
    public interface IEntity : ISoftDelete
    {
        int Id { get; set; }
        DateTime CreateTime { get; set; }
        DateTime UpdateTime { get; set; }
    }
    public interface IEntityWithoutUpdateTime : ISoftDelete
    {
        int Id { get; set; }
        DateTime CreateTime { get; set; }
    }

    public interface ISoftDelete
    {
        /// <summary>
        /// 逻辑删除标记:1已删除，0未删除
        /// </summary>
        bool IsDelete { get; set; }
    }
}
